package com.yanqu.road.entity.activity.zhenhuan;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_c_zhenhuan_promotion", desc = "跨服甄嬛传晋级数据")
public class CrossZhenHuanPromotionData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int childType;
    @FieldTypeAnnotation(update = true, desc = "游戏服id")
    private long serverId;
    @FieldTypeAnnotation(desc = "晋级的列表")
    private List<ZhenHuanPromotionInfo> promotionInfoList = new ArrayList<>();
    @FieldTypeAnnotation(desc = "游戏服接收确认")
    private int gameServerConfirm;

    public CrossZhenHuanPromotionData() {
    }

    public CrossZhenHuanPromotionData(int activityId, int childType, long serverId) {
        this.activityId = activityId;
        this.childType = childType;
        this.serverId = serverId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getChildType() {
        return childType;
    }

    public void setChildType(int childType) {
        this.childType = childType;
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public List<ZhenHuanPromotionInfo> getPromotionInfoList() {
        return promotionInfoList;
    }

    public void setPromotionInfoList(List<ZhenHuanPromotionInfo> promotionInfoList) {
        this.promotionInfoList = promotionInfoList;
        setUpdateOption();
    }

    public int getGameServerConfirm() {
        return gameServerConfirm;
    }

    public void setGameServerConfirm(int gameServerConfirm) {
        this.gameServerConfirm = gameServerConfirm;
        setUpdateOption();
    }
}
